package com.lx.boot1.canal;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lx.boot.db.domain.BaseEntity;
import com.lx.util.LX;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class Commodity extends BaseEntity implements Serializable{

   private static final long serialVersionUID = 1L;
   

   @TableId
   @Schema(description = "商品主键")
   private Long cId;
   
   @Schema(description = "商品名")
   private String tradeName;
   
   @Schema(description = "价格")
   private BigDecimal price;
   
   @Schema(description = "图片")
   private String picture;
   
    @Schema(description = "库存")
    private Integer quan;


}

